//
//  TMTWeakPassWord.h
//  TMT4IOS
//
//  Created by Qiunee on 15/8/18.
//  Copyright (c) 2015年 shadow. All rights reserved.
//

#import <Foundation/Foundation.h>

/*!
 *  @enmu
 *  @abstract 密码强度
 */
typedef NS_ENUM(NSInteger, PasswordStrength) {
    /*!
     *  @enmu
     *  @abstract 弱
     */
    kPasswordStrengthWeak      = 0,
    /*!
     *  @enmu
     *  @abstract 中
     */
    kPasswordStrengthMiddle    = 1,
    /*!
     *  @enmu
     *  @abstract 强
     */
    kPasswordStrengthStrong    = 2
};


/*!
 @class
 @abstract  密码校验
 @discussion 排查弱密码
 */
@interface TMTWeakPassWord : NSObject

/*!
 *  @method
 *  @abstract 密码强度
 *  @discussion 返回密码强度
 *
 *  @param password 密码
 *
 *  @return 返回的强度。2：强，1:中，0:弱
 */
+ (PasswordStrength )judgePasswordStrength:(NSString*)password;
@end
